Check Text Exists
Command Prototype
bRet = Text.Exists(objUiElement,sText,iRule,iOccurrence,iTimeOut,optionArgs)
Command Description
Find the text in the specified element, and return true if the text exists, otherwise return false
Parameter Description
- Required Parameter
- objUiElement--The Parent element in which the program will find the text. When passed as a string type, it is used as feature string to find the UI element and then find the child element; when passed as a UiElement type, directly find in this UiElement element; when passed a null, find in all windows
- sText--The text used for finding elements
- iRule--The rule used for finding texts
- iOccurrence--If the string in the Text field appears multiple times in the specified UI element, specify the number of occurrences to click here. For example, if the string appears 4 times and you want to click the first match, write 1 in this field
- iTimeOut-- Specify the time (in milliseconds) to wait for an activity to run before SelectorNotFoundException throws an error. The default is 10000 milliseconds (10 seconds)
- Optional Parameter
- bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values (True, False). The default is False
- iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
- iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
- bSetForeground--Activate the target window or not before the operation
- return
- bRet--The variable used to save the output of the function call